<body class="inside-header inside-aside is-dialog">
<div id="main" role="main">
    <div class="tab-content tab-addtabs">
        <div id="content">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <section class="content-header hide">
                        <h1>
                            控制台 <small>Control panel</small>
                        </h1>
                    </section>
                    <div class="content">
                        <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
                            <input type="hidden" name="row[id]" value="<?=$row['id']?>">
                            <div class="form-group">
                                <label for="c-sort" class="control-label col-xs-12 col-sm-2">排序</label>:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-sort" class="form-control" name="row[sort]" type="number" value="<?=$row['sort']?>" placeholder="可为空">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="c-title" class="control-label col-xs-12 col-sm-2">名称:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-title" class="form-control" name="row[title]" type="text" value="<?=$row['title']?>">
                                </div>
                            </div>
                            <!-- <div class="form-group">
                                <label for="c-image" class="control-label col-xs-12 col-sm-2">封面图:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="form-inline">
                                        <input id="c-image" class="form-control" size="50" name="row[img_cover]" type="text" value="<?=$row['img_cover']?>">
                                        <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/*,mp4" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> 上传</button></span>
                                        <ul class="row list-inline plupload-preview" id="p-image"></ul>
                                    </div>
                                </div>
                            </div> -->
                            <div class="form-group">
                                <label for="c-name" class="control-label col-xs-12 col-sm-2">url:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-url" data-rule="" class="form-control" name="row[url]" type="text" value="<?=$row['url']?>">
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="c-status" class="control-label col-xs-12 col-sm-2">状态:</label>
                                <div class="col-xs-12 col-sm-8">

                                    <label for="row[status]-normal"><input id="row[status]-normal" name="row[status]" type="radio" value="1" <?php if(!isset($row['status']) || $row['status'] == 1):?>checked<?php endif;?> /> 正常</label>
                                    <label for="row[status]-hidden"><input id="row[status]-hidden" name="row[status]" type="radio" value="0" <?php if(isset($row['status']) && $row['status'] == 0):?>checked<?php endif;?> /> 隐藏</label>

                                </div>
                            </div>

                            <div class="form-group layer-footer">
                                <label class="control-label col-xs-12 col-sm-2"></label>
                                <div class="col-xs-12 col-sm-8">
                                    <button type="submit" class="btn btn-success btn-embossed">确定</button>
                                    <button type="reset" class="btn btn-default btn-embossed">重置</button>
                                </div>
                            </div>
                        </form>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>